<template>
  <div class="money">
    <!-- 头部 -->
    <div class="title">
      <van-nav-bar
        title="我的余额"
        left-arrow
        @click-left="$router.push('/my')"
      />
    </div>

    <!-- 余额 -->
    <div class="Thebalanceof">
      <div class="Thebalanceof_centent">
        <div class="centent_nav">
          <span>当前余额</span>
          <div class="shuoming" @click="$router.push('/mymoneytwo')">
            <van-icon name="question" />
            余额说明
          </div>
        </div>

        <!-- 剩余余额 -->
        <div class="cententyue"><span>0.00</span> <i>元</i></div>

        <!-- 提现按钮 -->
        <div class="van_button">
          <van-button type="default" color="#cccccc" block>提现</van-button>
        </div>
      </div>
    </div>

    <!-- 底部 -->
    <div class="details">
      <div class="mingxi">交易明细</div>
      <div class="pic">
        <img src="../assets/明细.png" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      money: parseFloat(this.$route.query.money),
    };
  },
  created() {
    console.log(this.money);
  },
};
</script>

<style lang="less" scoped>
.money {
  background-color: #f5f5f5;
}
.title {
  color: #fff;
  /deep/.van-nav-bar {
    background-color: #3190e8;
    .van-nav-bar__title {
      color: #fff;
    }
    .van-icon-arrow-left {
      color: #fff;
    }
  }
}
/deep/.van-ellipsis {
  font-weight: 700;
  font-size: 20px;
}
/deep/.van-nav-bar__arrow {
  font-size: 20px;
}
.Thebalanceof {
  height: 220px;
  background-color: #3190e8;
  padding: 0 5px;
  font-size: 12px;
  .Thebalanceof_centent {
    height: 200px;
    background-color: #ffffff;
    border-radius: 5px;
    .centent_nav {
      display: flex;
      justify-content: space-between;
      padding: 10px 10px 0 10px;
      .shuoming {
        color: #3190e8;
      }
      span {
        font-size: 18px;
        color: #666;
      }
    }
    .cententyue {
      margin-top: 10px;
      padding-left: 10px;
      span {
        font-size: 40px;
      }
      i {
        font-size: 16px;
      }
    }
  }
}
.van_button {
  margin-top: 20px;
  padding: 0 10px;
}
.details {
  color: #a6a6a6;
  font-size: 12px;
  line-height: 40px;
  padding: 0 0 0 10px;
  .pic {
    text-align: center;
  }
  .mingxi {
    font-size: 20px;
  }
}
</style>